import { tr } from 'element-plus/es/locale'

export default {
  // 业绩
  home: {
    // key是咱们的api文件的方法名, value是后端all接口返回的key名
    homeSexPie: 'distributor_get_distributorsexinfo',
    homeAgePie: 'distributor_get_distributorageinfo',
    homeNewOldPie: 'achievement_get_distributorperformanceproportioninfo',
    homeRetailPie: 'achievement_get_retailexpandperformanceproportioninfo',
    homeAreaPie: 'achievement_get_performanceproportioninfo',
    homeFlexLeft: 'distributor_get_distributorstatisticinfo',
    homeGlobalValidMembers: 'distributor_get_validdistributorinfo',
    globalCompletedReq: 'achievement_get_areacompletedinfo',
    countryCompletedReq: 'achievement_get_countrycompletedinfo',
    globalNewMemberReq: 'distributor_get_newdistributorinfo',
    globalPerformanceReq: 'achievement_get_achievementtrendinfo',
    homeTodayMoney: 'achievement_get_transactionperformanceinfo',
    homeGlobalPerformanceYoY: 'achievement_get_achievementyoy',
    homeGlobalPerformanceRatio: 'achievement_get_achievementmom',
    homeFlexRight: 'achievement_get_performanceinfo',
    homeGlobalMemberLevelCounts: 'distributor_get_distributorxjinfo',
    homeCountryPerformanceYoY: 'distributor_get_countryachievementyoy',
    homeNationalPerformanceMoM: 'distributor_get_countryachievementmom',
    homeGlobalCoreDealers: 'distributor_get_distributorcoreinfo',
    homeTableCoreDealers: 'distributor_get_distributorcoredetail'
  },

  // 财务
  /***
   *
   * 是否显示图表 及加载相应数据的规则
   * level 1 全球 2 区域 3 国家
   * year 年的时候是否显示
   * month 月的时候是否显示
   * everyCode 0 各区对比显示 1 各国对比显示 88 非各区与非各国 显示
   * */
  finance: {
    /***利润相关****/
    getProfitYoy: {
      // 利润同比
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getProfitMom: {
      // 利润同比
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getProfitTrendVolume: {
      // 利润额趋势
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getProfitTrendRate: {
      // 利润率趋势
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getProfitQoq: {
      // 利润同环比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    getIncomeYOY: {
      // 利润同比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getIncomeQOQ: {
      // 利润环比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getTopFiveCountryRankingZero: {
      // 亏损前五国家
      level: [1, 2],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getTopFiveCountryRankingOne: {
      // 盈利前五国家
      level: [1, 2],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getAchievementRate: {
      // 业绩达成率
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1, 88],
    },
    getIncomeVolumeRate: {
      //利润额/利润率
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    /****边际贡献****/
    getMarginalAmountRateTrend: {
      // 边际贡献额趋势
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getMarginalRateTrend: {
      // 边际贡献率趋势
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getMarginalAmountYOY: {
      // 边际贡献额同比
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1, 88],
    },
    getMarginalAmountMOMGrow: {
      // 边际贡献额环比增长
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getMarginalAmoutRate: {
      // 边际贡献率
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1, 88],
    },
    getMarginalAmountYOYMOMCompare: {
      // 边际贡献额同比环比对比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    /****变动支出 谷守丙****/
    getVariableExpensesCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getVariableExpensesWages: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getVariableExpensesAgencyfee: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getVariableExpensesTax: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getVariableExpensesPromotion: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getEveryVariableExpensesCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1],
    },
    getEveryVariableExpensesWages: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1],
    },
    getEveryVariableExpensesAgencyfee: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1],
    },
    getEveryVariableExpensesTax: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1],
    },
    getEveryVariableExpensesPromotion: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1],
    },
    getKeyVariableExpensesMonth: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    getVariableExpensesByRegionMonth: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    /***收入****/
    getSalesAmountProfit: {
      // 收入额与利润率
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    getSalesAmountYOY: {
      // 收入额同比
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1, 88],
    },
    getSalesAmountMOM: {
      // 收入额环比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getSalesPercent: {
      // 收入额占比
      level: [1, 2],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getSalesTrend: {
      // 收入额趋势
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getRevenueGrowthRate: {
      // 收入同环比
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    /***固定支出总额，增加额 张绅绅****/
    getFixedExpensesAmount: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [0, 1, 88],
    },
    getFixedExpensesAmountYOY: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getFixedExpensesAmountYoyGrow: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getFixedExpensesAmountQoq: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getFixedExpensesAmountYoyQoq: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    getTsotalSumAndRatio: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [0, 1],
    },
    getFixedExpenses: {
      level: [1, 2, 3],
      year: false,
      month: true,
      everyCode: [88],
    },
    /********全球财务接口-固定支出人工、咨询、公关、差旅，租赁 朱国清************/
    getExpensesLaborCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getExpensesLeaseCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getExpensesConsultingCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getExpensesPublicRelationsCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getExpensesTrafficCost: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getContrastExpensesLaborCost: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getContrastExpensesLeaseCost: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getContrastExpensesConsultingCost: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getContrastExpensesPublicRelationsCost: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getContrastExpensesTrafficCost: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1],
    },
    getSalesCompare: {
      level: [1, 2, 3],
      year: true,
      month: false,
      everyCode: [88],
    },
    getGlobalVariableExpensesCumulativeYear: {
      level: [1, 2, 3],
      year: true,
      month: true,
      everyCode: [0, 1, 88],
    },
    
  },

  // 供应链
  supply: {
    sthCountBar: '', // 库存数量
    sthMoneyBar: '', // 库存金额
    inOutSthCountBar: '', // 入库出库数量展示
    top10MoneyBar: '', // top10出库金额占比
    top10CountBar: '', // top10出库数量占比
    countrySthBar: '', // 国家库存结构
    moneySummary: '', // 在制、在库、在途订单金额汇总
    inventoryTrendReq: '', // 全球库存变化趋势图
    inventoryOutBoundReq: '', //库存数量与出库数量对比
    inventoryUnSaleableReq: '', //呆滞库存
    inventoryTurnoverReq: '', //区域库存周转率/区域库存周转天数
    supplyWarehouseNum: '', //全球库存数
  },

  // 经销商数据看板
  dealerData: {
    // 整网业绩
    dealerDistributorZwall: 'api-distributor-zwall',
    dealerPriceDetailPie: 'api-distributor-bonusChart',
    dealerTotalWebsitePie: 'api-distributor-pvChart',
    dealerScaleInfo: 'api-distributor-scaleInfo',
    dealerDisupgradeinfo: 'api-distributor-disupgradeinfo',
    dealerGrowthTrend: 'api-distributor-growthtrend',
    dealerNetworkGrowthTrend: 'api-distributor-zwtrend',
    distributorBasicInfo: 'api-distributor-distributorbasicinfo',
    networkOveRview: 'api-distributor-networkoverview',
    dealerGetplaninfo: 'api-distributor-getplaninfo',
    dealerNetWork: 'api-distributor-network', // 整网业绩
    dealerBadgeInfo: 'api-distributor-badgeinfo', // 徽章信息
  },
}
